package com.h2.common.util.email;

import java.util.Collection;

/**
 * Example:
 * 
 * <pre>
 * DefaultEmailProvider provider = new DefaultEmailProvider();
 * provider.setHost("your_host");
 * provider.setDefaultFromAddresses(Lists.newArrayList("no.reply@pv.com"));
 * 
 * provider.sendTo(title, message, user.getEmail());
 * </pre>
 *
 * @since 2.1
 */
public interface IEmailProvider {

   public boolean send(String subject, String message, Collection<String> to);

   public boolean send(String subject, String message, Collection<String> from,
         Collection<String> to);
   
   public boolean send(String subject, String message, String contentType,
         Collection<String> from, Collection<String> to);
   
   public boolean sendTo(String subject, String message, String... to);
   
   public String getHost();
   
}
